﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sendOrderList.aspx.cs" Inherits="WebSite.admin.order.sendOrderList" %>

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>福利点点通 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
        <script src="../js/common.js" type="text/javascript"></script>
    <style>
     #ext-comp-1002
     {
         margin-top:-20px;
         }
    </style>
</head>
<body>
    <form id="form1" runat="server">
     <ext:PageManager ID="PageManager1" runat="server" />
      <ext:SimpleForm ID="extForm1" runat="server" BodyPadding="5px"   
            EnableBackgroundColor="false" Title="订单处理"  ShowHeader="true" >
              <Items>
               <ext:Panel ID="Panel2" ShowHeader="false"  CssClass="x-form-item" ShowBorder="false" Layout="Column" runat="server">
             <Items>
                   <ext:Label ID="lblGoodsType"   runat="server" Width="70px" Text="&nbsp;&nbsp;订单号："></ext:Label>
                   <ext:TextBox runat="server" ID="txtOrderCode"   MaxLength="100" Label="订单号" ></ext:TextBox>

                  <ext:Label ID="Label5"  Width="70px"    runat="server" Text="&nbsp;&nbsp;联系方式："></ext:Label>
                   <ext:TextBox runat="server" ID="txtLinkWay"   MaxLength="100" Label="联系方式" ></ext:TextBox>
                   <ext:Label ID="Label6"  Width="60px"    runat="server" Text="&nbsp;&nbsp;收件人："></ext:Label>
                   <ext:TextBox runat="server" ID="txtCname"   MaxLength="100" Label="收件人" ></ext:TextBox>
                </Items>
         </ext:Panel>

         <ext:Panel ID="Panel1" ShowHeader="false"  CssClass="x-form-item" ShowBorder="false" Layout="Column" runat="server">
             <Items>

                <ext:Label ID="lblSendDate"  Width="80px"    runat="server" Text="&nbsp;&nbsp;添加日期从："></ext:Label>
                  <ext:DatePicker ID="dpSendDateFrom" Width="100px" Label="送货日期从" runat="server"> </ext:DatePicker>
                  <ext:Label ID="Label1"  Width="30px"    runat="server" Text="&nbsp;&nbsp;到："></ext:Label>
                  <ext:DatePicker ID="dpSendDateTo" Width="100px" Label="到" runat="server"> </ext:DatePicker>

                  <ext:Label ID="Label7"  Width="70px"    runat="server" Text="&nbsp;&nbsp;收件地址："></ext:Label>
                   <ext:TextBox runat="server" ID="txtAddress"   MaxLength="100" Label="收件地址" ></ext:TextBox>

                 <ext:Button ID="btnSearch" Text="搜索"  CssClass="mleft mright" runat="server"  OnClick="btnSearch_Click"></ext:Button>
              
               </Items>
         </ext:Panel>
     </Items>
     
   </ext:SimpleForm>

   <ext:Panel ID="Panel8" ShowBorder="True" ShowHeader="false" BoxFlex="1"  CssClass="x-form-item"  Layout="Fit"
                runat="server">
                <Toolbars>
                    <ext:Toolbar ID="Toolbar2" runat="server">
                    <Items>
     
                    <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server"></ext:ToolbarSeparator>
                     <ext:Label ID="Label4"  Width="100px"    runat="server" Text="&nbsp;&nbsp;浏览导入的文件："></ext:Label>
                    <ext:FileUpload ID="fuInput" runat="server" Width="300px" Label="选择导入的文件" ></ext:FileUpload>
                    <ext:Button ID="btnInputOrder" runat="server" Text="导入"  OnClick="btnInputOrder_Click"  ConfirmTarget="self" ></ext:Button>
                    </Items>
                    </ext:Toolbar>
                </Toolbars>
                <Items>
    </Items>
    </ext:Panel>
         <ext:Grid ID="Grid1" Title="查询结果" PageSize="50" ShowBorder="false"  CssClass="x-form-item"  Height="398px"  AllowPaging="true" 
                        OnPageIndexChange="Grid1_PageIndexChange" ShowHeader="False" runat="server" EnableCheckBoxSelect="false"   AllowSorting="true"    IsDatabasePaging="true" 
                        DataKeyNames="id" OnSort="Grid1_Sort" EnableRowNumber="True">
        <Columns>

            <ext:BoundField Width="80px" ColumnID="id" SortField="id" DataField="id" DataFormatString="{0}"
                HeaderText="编号" />
                  <ext:BoundField Width="100px" ColumnID="orderCode" SortField="orderCode" DataField="orderCode" DataFormatString="{0}"
                HeaderText="订单号" />
            <ext:BoundField Width="100px" ColumnID="receiver" SortField="receiver" DataField="receiver" DataFormatString="{0}"
                HeaderText="收件人" />
                  <ext:BoundField Width="100px" ColumnID="receiverPhone" SortField="receiverPhone" DataField="receiverPhone" DataFormatString="{0}"
                HeaderText="收件人联系方式" />
                        <ext:BoundField Width="260px" ColumnID="receiverAddress" SortField="receiverAddress" DataField="receiverAddress" DataFormatString="{0}"
                HeaderText="收件人地址" />
                  <ext:BoundField Width="140px" ColumnID="inputTime" SortField="inputTime" DataField="inputTime" DataFormatString="{0:yyyy-MM-dd hh:mm:ss}"
                HeaderText="添加时间" />
                           <ext:BoundField Width="200px" ColumnID="remark" SortField="remark" DataField="remark" DataFormatString="{0}"
                HeaderText="备注" />

             <ext:WindowField Width="60px" WindowID="Window2" HeaderText="打印" Text="[打印]"   ToolTip="打印" DataIFrameUrlFields="orderCode"
                                DataIFrameUrlFormatString="sendOrderPrinter.aspx?code={0}" Title="打印"
                                IFrameUrl="~/alert.aspx" />
        </Columns>
    </ext:Grid>

       <ext:Window ID="Window2" Title="打印订单" Popup="false" EnableIFrame="true" IFrameUrl="about:blank"
        Target="Parent" runat="server"   CloseAction="HidePostBack" IsModal="true" Width="750px"
        EnableConfirmOnClose="true"  Height="550px">
    </ext:Window>
    </form>
</body>
</html>
